#include "library.h"
#include "list/List.h"

#include <iostream>

void hello() {
    std::cout << "Hello, World!" << std::endl;

    List* list = list_new();
    char* a = static_cast<char *>(malloc(10));
    list_append(list , a);

    char* b = static_cast<char *>(malloc(10));
    list_append(list , b);

    char* c = static_cast<char *>(malloc(10));
    list_append(list , c);

    int len = list_len(list);
    for(int i=0;i<len;i++){
        void* data = list_removeAt(list , 0);
        free(data);
    }

    list_delete(&list);
}